package com.itheima.demo02;

public class MainClass {
    public static void main(String[] args) {
        //测试程序运行时间
        long start = System.currentTimeMillis();
        for (int i = 0; i < 10000; i++) {
            System.out.println(i);
        }
        long end = System.currentTimeMillis();
        System.out.println(end - start);

        //数组拷贝
        int[] arr1 = {1, 2, 3, 4, 5};
        int[] arr2 = new int[10];

        System.arraycopy(arr1, 0, arr2, 3, 5);
        for (int i = 0; i < arr2.length; i++) {
            System.out.println(arr2[i]);
        }
    }
}
